package com.tedu.springdemo.day01;

import java.io.Serializable;
public class Person implements Serializable { //实现序列化接口 数据传输 二进制
    private String name;
    private int age;

    //方法
    public void say(){
        System.out.println("说话~");
    }
    public void eat(){
        System.out.println("吃饭~");
    }

    //构造器：默认 空参数
    public Person() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}